package com.winter.runner;

import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * Created by chris_gang on 2018/5/29.
 * 项目启动执行
 * 这里通过Order 设定value =2 的值来指定执行顺序
 */
@Component
@Order(value =2)
public class MyCommandLineRunner implements CommandLineRunner {
    @Override
    public void run(String... var1) throws Exception{
        System.out.println("start!222222222222222222222222222222");
    }
}
